
/* mixin 类不可继承其他类( Object 除外)*/
mixin MixinClassA {
  String name = "nameA";
  void printA() {
    print("this print from MixinClassA");
  }
}
mixin MixinClassB {
  String name = "nameB";
  void printB() {
    print("this print from MixinClassB");
  }
}

class MyClass with MixinClassA, MixinClassB {

}

void main() {
  final myClass = MyClass();
  myClass.printA();
  myClass.printB();
  print("minxin var -> ${myClass.name}");
}